import request from '@/config/axios'
import type { GraphOntologyConcept, GraphOntologyProperty, GraphOntologyRelation } from './types'

export const getGraphOntologyConceptApi = (): Promise<IResponse<GraphOntologyConcept[]>> => {
  return request.get({ url: '/graph/ontology/concept' })
}

export const getGraphOntologyPropertyApi = (): Promise<IResponse<GraphOntologyProperty[]>> => {
  return request.get({ url: '/graph/ontology/property' })
}

export const getGraphOntologyRelationApi = (): Promise<IResponse<GraphOntologyRelation[]>> => {
  return request.get({ url: '/graph/ontology/relation' })
}
